package com.adou.d2;

public class WhileDemo {
    public static void main(String[] args) {
        int i = 0;
        while (i<5) {
            System.out.println("hello world");
            i++;
        }

        // 折纸
        double peakHight = 8848860;
        double paperHight = 0.1;
        int count = 0;
        //
        while (paperHight < peakHight) {
            paperHight = paperHight*2;
            count++;
        }
        System.out.println(count);
        System.out.println(paperHight);




    }
}
